package cn.pzaily.fealetter.platform;

import cn.pzaily.fealetter.entity.PlatFormConfig;
import cn.pzaily.fealetter.service.SignatureService;
import cn.pzaily.fealetter.service.TemplateService;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @PackageName: cn.pzaily.fealetter.platform
 * @Description:
 * @Author: Pang
 * @Date: 2021-11-23 19:19
 */
public abstract class AbstractPlatFormService {


    protected PlatFormConfig platFormConfig;

    protected SignatureService signatureService;

    protected TemplateService templateService;



    public String send(String mobile, Map<String, String> params, String template, String signature) {
        return this.sendMessage(mobile, params, template, signature);
    }

    public String sendBatch(String[] mobile, LinkedHashMap<String, String> params, String template, String signature) {
        return this.sendBatchMessage(mobile, params, template, signature);
    }


    public abstract String sendMessage(String mobile, Map<String, String> params, String template, String signature);


    public abstract String sendBatchMessage(String[] mobile, LinkedHashMap<String, String> params, String template, String signature);
}
